<div class="span10">
    <legend>Daftar Dosen</legend>
    <table class="table table-bordered">
        <thead>
            <tr>
                <th>#</th>
                <th>Username</th>
                <th>Nama</th>
                <th>Action</th>
            </tr>
        </thead>
        <tbody>
            <?php
            $no = $this->uri->segment(3) + 1;
            foreach ($dosen as $data):
                ?>
                <tr>
                    <td><?php echo $no ?></td>
                    <td><span class="label label-important"><?php echo $data->username ?></span></td>
                    <td><?php echo $data->nama ?></td>
                    <td><?php echo anchor('admin/del_dosen/' . $data->username, '<i class="icon-remove"></i>') ?></td>
                </tr>
                <?php
                $no++;
            endforeach;
            ?>
        </tbody>
    </table>
    <?php echo $this->pagination->create_links(); ?>
</div><!--/span-->